<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\ArrayHelper;
use kartik\datetime\DateTimePicker;

//\backend\assets\SearchAsset::register($this);
/* @var $this yii\web\View */
/* @var $model app\modules\sysConfig\models\Sms */
/* @var $form yii\widgets\ActiveForm */
$this->title = '短信发送';
$this->params['breadcrumbs'][] = ['label' => '短信列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;

?>

<div class="sms-form">
    <?php echo $this->render('_searchSend', ['model' => $searchModel]); ?>
    <br>
    <br>
    <br>
    <hr>
    <?php $form = ActiveForm::begin(); ?>
    <div class="col-sm-4">
        <?php echo $form->field($model, 'phones')->textInput(['maxlength' => true, 'readonly' => "readonly"]) ?>
        <span id="lender_href"></span>
        <span id="lender_count"></span>
    </div>

    <div class="col-sm-4">
        <?= $form->field($model, 'smsType')->dropDownList(ArrayHelper::map($template, 'type', 'type'), ['prompt' => '--请选择--']) ?>
    </div>
    <div class="col-sm-4">
        <?=
        $form->field($model, 'createTime')->widget(DateTimePicker::classname(), [
            'options' => ['placeholder' => ''],
            'pluginOptions' => [
                'autoclose' => true,
                'todayHighlight' => true,
            ]
        ]);
        ?>
    </div>
    <div class="form-group-butons btnSub">
        <?= Html::submitButton('发送短信', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
